package cn.tedu.csmall.sso.mapper;

import cn.tedu.csmall.commons.pojo.admin.model.Admin;
import cn.tedu.csmall.commons.pojo.admin.vo.AdminListVO;
import cn.tedu.csmall.commons.pojo.admin.vo.AdminLoginVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {
    int insert(Admin admin);
    int countByUsername(String username); // 用于在添加业务中保障用户名唯一
    List<AdminListVO> list();
    //根据用户名获取用户信息
    AdminLoginVO selectUserDetail(String username);
}
